package com.gitee.hermer.engine.jars.app.sdk.utils;

import java.util.Properties;

import com.gitee.hermer.boot.jee.commons.utils.PropertiesUtils;
import com.gitee.hermer.engine.jars.app.sdk.EngineAppClassLoader;

public class ResourcesUtils {
	
	public Properties loadProperties(String name){
		if(Thread.currentThread().getContextClassLoader() instanceof EngineAppClassLoader){
			return ((EngineAppClassLoader)Thread.currentThread().getContextClassLoader()).loadProperties(name);
		}else{
			return PropertiesUtils.loadProperties(name);
		}
	}

}
